extends Node
@onready var draw_path_by_mouse_layer: DrawPahtByMouseLayer = $DrawPathByMouseLayer
@onready var chessboard: Chessboard = $Chessboard
var start_cell:Vector2i = Vector2i(0,0)


func _ready() -> void:
	draw_path_by_mouse_layer.done_drawing_cells.connect(print_path)
	var board_cells:Array[Vector2i] = ShapeCells.get_diamond_cells(start_cell,2)
	var board_cells_in_layer:Array[Vector2i] = chessboard.filter_cells_into_chessboard_cells(board_cells)
	print(board_cells_in_layer)
	draw_path_by_mouse_layer.start_drawing(start_cell,board_cells_in_layer)

func print_path(path:Array[Vector2i]):
	print(path)
